﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

using MyLibrary.ThreeLayer.DataAccess.MetaData;

namespace MyLibrary.ThreeLayer.DataAccess.Interface
{
    internal interface IEntityMapper<T> where T : class,new()
    {
        void FillEntity(IDataReader reader, MappingCollection collection, T data);
        IList<T> ToEntities(IDataReader reader, MappingCollection collection);
        T ToEntity(IDataReader reader, MappingCollection collection);
    }
}
